package com.app.miwawa.api.eam.entity.view;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.framework.common.api.entity.CommonEntityUUID;
import org.framework.common.api.support.annotation.Search;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 班级信息视图
 * <p>描述: 教务管理</p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date 2016年2月2日 下午9:16:54
 * @version 1.0.2016
 */
@Entity @Table(name = "VB_CLASSES")
public class ClassesView extends CommonEntityUUID {

	/** serialVersionUID(long):. */
	private static final long serialVersionUID = -4787358669169315549L;

	// classes
	private String type;
	private String code;
	@Search
	private String name;
	private String week;
	private String time;
	private String toplimit;
	private String trylimit;
	private	String usecount;
	private String surplus;
	@Temporal(TemporalType.DATE)
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	private Date createDate;
	@Temporal(TemporalType.DATE)
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	private Date finishDate;
	
	// relation
	private String roomid;
	private String room;
	private String lesson;
	@Search
	private String teacher;
	
	// count
	private String students;

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getWeek() {
		return week;
	}

	public void setWeek(String week) {
		this.week = week;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getToplimit() {
		return toplimit;
	}

	public void setToplimit(String toplimit) {
		this.toplimit = toplimit;
	}

	public String getTrylimit() {
		return trylimit;
	}

	public void setTrylimit(String trylimit) {
		this.trylimit = trylimit;
	}

	public String getUsecount() {
		return usecount;
	}

	public void setUsecount(String usecount) {
		this.usecount = usecount;
	}

	public String getSurplus() {
		return surplus;
	}

	public void setSurplus(String surplus) {
		this.surplus = surplus;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getFinishDate() {
		return finishDate;
	}

	public void setFinishDate(Date finishDate) {
		this.finishDate = finishDate;
	}

	public String getRoom() {
		return room;
	}

	public void setRoom(String room) {
		this.room = room;
	}
	

	public String getRoomid() {
		return roomid;
	}

	public void setRoomid(String roomid) {
		this.roomid = roomid;
	}

	public String getLesson() {
		return lesson;
	}

	public void setLesson(String lesson) {
		this.lesson = lesson;
	}

	public String getTeacher() {
		return teacher;
	}

	public void setTeacher(String teacher) {
		this.teacher = teacher;
	}

	public String getStudents() {
		return students;
	}

	public void setStudents(String students) {
		this.students = students;
	}
}
